package com.euond.permission.entities;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.euond.common.core.entities.BaseEditEntity;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * Created by user on 2018/1/6.
 */
@Getter
@Setter
@TableName(value = "sys_data_privilege")
public class DataPrivilege extends BaseEditEntity {

    /**
     * 数据权限名称
     */
    @NotNull
    private String privilegeName;

    /**
     * 数据类型(注意不能为int类型)
     */
    @NotNull
    private Integer dataType;

    /**
     * 数据类型显示名
     */
    @TableField(exist = false)
    private String dataTypeName;

    /**
     * 过滤SQL
     */
    @NotNull
    private String privilegeSql;

    /**
     * 状态
     */
    @NotNull
    private Integer status;
}
